
#ifndef HARDWARETESTDIALOG_H
#define HARDWARETESTDIALOG_H
#include "src/qserialproto.h"
#include <QDialog>
#include "src/globalvar.h"

namespace Ui {
class HardwareTestDialog;
}


class HardwareTestDialog :public SerialListener, public QDialog

{

public:
    explicit HardwareTestDialog(QWidget *parent = nullptr);
    ~HardwareTestDialog();
    void OnPackage(ProtoData);

private slots:
    void on_pushButton_clicked();
    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_5_clicked();

    void on_pushButton_6_clicked();

    int MoveAxis(uint8_t axis,uint16_t cnt);
    int WaitForResponse();
private:
    Ui::HardwareTestDialog *ui;
    bool mWaitForResp = false;
};

#endif // HARDWARETESTDIALOG_H
